package com.haiyu.manager.service;

import com.haiyu.manager.pojo.Worker;
import com.haiyu.manager.response.PageDataResult;

import java.util.Map;

public interface WorkerService {
    PageDataResult getWorkers(String openId, Integer status, Integer pageNum, Integer pageSize);

    Map<String,Object> updateWorker(Worker worker);
    Map<String,Object> delWorker(Integer id,Integer IsAllowed);

    Map<String,Object> recoverWorker(Integer id,Integer IsAllowed);
    Worker getWorkerById(Integer id);
}
